﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AdminPositionLevel.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminPositionLevel" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" Text="新增">
                    <ClientSideEvents Click="function(s, e) {
	agv.AddNewRow();
}" />
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="ASPxGridView2" runat="server" AutoGenerateColumns="False" 
    DataSourceID="LinqDataSource1" KeyFieldName="Idx"  ClientInstanceName="agv">
    <Columns>
        <dx:GridViewDataTextColumn Caption="编号" FieldName="Idx" ReadOnly="True" 
            VisibleIndex="0" Width="60px">
            <EditFormSettings Visible="False" />
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="中文名" FieldName="Name" VisibleIndex="1" 
            Width="150px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="英文名" FieldName="EName" VisibleIndex="2" 
            Width="150px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="备注" FieldName="Note" VisibleIndex="3" 
            Width="200px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="序号" FieldName="SortID" VisibleIndex="4" 
            Width="60px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewCommandColumn ButtonType="Button" Caption="操作" VisibleIndex="5">
            <EditButton Text="修改" Visible="True">
            </EditButton>
            <NewButton Text="添加">
            </NewButton>
            <DeleteButton Text="删除" Visible="True">
            </DeleteButton>
            <CancelButton Text="取消" Visible="True">
            </CancelButton>
            <UpdateButton Text="保存" Visible="True">
            </UpdateButton>
            <ClearFilterButton Visible="True">
            </ClearFilterButton>
        </dx:GridViewCommandColumn>
    </Columns>
    <Settings ShowFilterRow="True" />
</dx:ASPxGridView>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EnableDelete="True" 
    EnableInsert="True" EnableUpdate="True" EnableViewState="False" 
    EntityTypeName="" OrderBy="SortID" TableName="TL_PositionLevel">
</asp:LinqDataSource>
</asp:Content>
